import request from '@/utils/request'

// 查询工资异常审批列表
export function listNcMoneyAbnormalApproval(query) {
  return request({
    url: '/hr/ncMoneyAbnormalApproval/list',
    method: 'get',
    params: query
  })
}

// 查询工资异常审批详细
export function getNcMoneyAbnormalApproval(id) {
  return request({
    url: '/hr/ncMoneyAbnormalApproval/' + id,
    method: 'get'
  })
}

// 新增工资异常审批
export function addNcMoneyAbnormalApproval(data) {
  return request({
    url: '/hr/ncMoneyAbnormalApproval',
    method: 'post',
    data: data
  })
}

// 修改工资异常审批
export function updateNcMoneyAbnormalApproval(data) {
  return request({
    url: '/hr/ncMoneyAbnormalApproval',
    method: 'put',
    data: data
  })
}

// 删除工资异常审批
export function delNcMoneyAbnormalApproval(id) {
  return request({
    url: '/hr/ncMoneyAbnormalApproval/' + id,
    method: 'delete'
  })
}
